package com.tledu.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tledu.pojo.Subject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: wzw
 * @Date: 2022/5/24
 */
@Mapper
public interface SubjectMapper extends BaseMapper<Subject> {

    /**
     * 分页查询列表和符合条件的想法
     * @param subject_title
     * @return
     * @Author wzw
     */
    List<Subject> selectChange(@Param("subject_title") String subject_title);


    /**
     * 根据id查
     * @param subject_id
     * @return
     */
    Subject selectById(Integer subject_id);

    /**
     * 通过主键删除数据
     * @param subject_id 主键
     * @return 影响行数
     */
    int deleteById(Integer subject_id);

}
